package interaction.input.concrete;

import processing.core.PFont;
import processing.core.PGraphics;
import processing.core.PImage;
import processing.core.PVector;

public class ScoreComponent extends BeatImagePromptComponent {
	private PFont font;
	private int score;
	
	public ScoreComponent(PVector position, PImage image, PFont font) {
		super(position, image);
		this.font = font;
	}
	
	public void setScore(int score) {
		this.score = score;
	}
	
	protected void drawRelative(PGraphics g) {
		super.drawRelative(g);
		g.textFont(font);
		g.fill(0);
		g.text(score, 400, 305);
	}
}
